import re


# 检查手机
def check_phone(s):
    if re.findall('^1((3[\d])|(4[75])|(5[012357689])|(7[678])|(8[\d])|)\d{8}$', s):
        return 'ok'  # 手机格式正确
    else:
        return 'fail'  # 手机号码错误